package d.n.d.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import d.n.d.dao.UserDao;
import d.n.d.domain.User;

/**
 * 
 * @author D.N.D
 * 
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;

	/**
	 * <br/>
	 * Check login method. <br/>
	 * 
	 * @param pstrUserName
	 * @param pstrPassword
	 * @return User
	 */

	public User verifyLogin(String pstrUserName, String pstrPassword) {
		
		User user = userDao.getUser(pstrUserName, pstrPassword);
		return user;
	}
}
